# demo_list = [1, 2, 3]
#
# print("定义列表后的内存地址 %d" % id(demo_list))
#
# demo_list.append(999)
# demo_list.pop(0)
# demo_list.remove(2)
# demo_list[0] = 10
#
# print("修改数据后的内存地址 %d" % id(demo_list))
#
# demo_dict = {"name": "小明"}
#
# print("定义字典后的内存地址 %d" % id(demo_dict))
#
# demo_dict["age"] = 18
# demo_dict.pop("name")
# demo_dict["name"] = "老王"
#
# print("修改数据后的内存地址 %d" % id(demo_dict))

# def print_info(name, title="", gender=True):
#     """
#
#     :param title: 职位
#     :param name: 班上同学的姓名
#     :param gender: True 男生 False 女生
#     """
#
#     gender_text = "男生"
#
#     if not gender:
#         gender_text = "女生"
#
#     print("%s%s 是 %s" % (title, name, gender_text))


# 提示：在指定缺省参数的默认值时，应该使用最常见的值作为默认值！
# print_info("小明")
# print_info("老王", title="班长")
# print_info("小美", gender=False)

# def demo(num, *args, **kwargs):
#
#     print(num)
#     print(args)
#     print(kwargs)
#
#
# demo(1, 2, 3, 4, 5, name="小明", age=18, gender=True)

def demo(*args, **kwargs):
    print(args)
    print(kwargs)

la_list=(1,2,3)
la_dict = {"a":"1","b":"2" }
demo(la_list,la_dict)
